//
//  MyWalletDetailListCell.m
//  zhongzhenglu
//
//  Created by XL on 2022/8/2.
//

#import "MyWalletDetailListCell.h"
#import "UIView+RBAdd.h"
#import "UIScrollView+RBAdd.h"
#import <Masonry.h>
#import "RBThemeConfig.h"
#import <UIColor+YYAdd.h>
#import <UIView+YYAdd.h>
#import "RanTool.h"

@interface MyWalletDetailListCell()

@property(nonatomic, strong)IBOutlet UIImageView *imgView;
@property(nonatomic, strong)IBOutlet UILabel *titleL;
@property(nonatomic, strong)IBOutlet UILabel *timeL;
@property(nonatomic, strong)IBOutlet UILabel *amountL;

@end

@implementation MyWalletDetailListCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self zoomSubViewsWithSelf];
}

- (void)setCellModel:(RBCellModel *)cellModel
{
    if (arc4random_uniform(2))
    {
        self.amountL.textColor = [UIColor colorWithHexString:@"#F25B50"];
        self.amountL.text = @"+1800.00";
    }
    else
    {
        self.amountL.textColor = [RBThemeConfig textBlackColor];
        self.amountL.text = @"-1800.00";
    }
}

@end
